package lab01;

public class Test05 {
    public static void main(String[] args) {
        int i=1,sum=0;
        for(i=1;i<=100;i++){
            sum+=i;

        }
        int e=1;sum=0;
        do {
            sum+=e;
            e++;
        }
        while (e<=100);
        System.out.println(sum);
        int d=1;sum=0;
        while (d<=100){
            sum+=d;
            d++;
        }
        System.out.println(sum);
    }

}
